package cn.xing.managementSystem.bean.pageable;

import cn.xing.managementSystem.bean.BaseBean;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;


/**
 * @author cuixing
 * @package io.merculet.management.common.bean.pageable
 * @class PageableRequest
 * @email xing.cui@magicwindow.cn
 * @date 2018/4/3 下午4:04
 * @description
 */
@Data
public class PageableRequest extends BaseBean {

    public PageableRequest() {
    }

    public PageableRequest(int pageNumber, int pageSize) {
        this.pageNumber = pageNumber;
        this.pageSize = pageSize;
    }

    // zero base
    @JsonProperty("page_number")
    @JSONField(name = "page_number")
    private int pageNumber;

    @JsonProperty("page_size")
    @JSONField(name = "page_size")
    private int pageSize;


    @JsonProperty("sort_fields")
    @JSONField(name = "sort_fields")
    private List<SortField> sortFields;


}
